<template>
  <div class="noFound">
    <div class="top">
      <el-button type="primary" size="default" class="btn" @click="goHome()">
        返回首页
      </el-button>
      <span><--点击这里返回首页哦~</span>
    </div>
    <div class="bottom">
      <img src="../../assets/images/error_images/404.png" alt="" />
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
let $router = useRouter()
const goHome = () => {
  $router.push('/home')
}
defineOptions({
  name: 'NotFound404',
})
</script>

<style scoped lang="scss">
.noFound {
  width: 100%;
  height: 100vh;

  .top {
    width: 100%;
    height: 50px;
    background-color: skyblue;
    display: flex;
    align-items: center;

    .btn {
      margin: 0 20px;
    }

    span {
      color: white;
      font-size: 20px;
    }
  }

  .bottom {
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      width: 1014px;
      height: 556px;
      margin-left: 400px;
      cursor: pointer;
    }
  }
}
</style>
